﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model
{
    public class UserLevelLog
    {
        public int id { get; set; }
        public int user_id { get; set; }
        public string user_name { get; set; }
        public int user_level { get; set; }
        public decimal sell_money { get; set; }
        public int line_num { get; set; }
        public int create_id { get; set; }
        public string create_name { get; set; }
        public string create_date { get; set; }
        /// <summary>
        ///  商家
        /// </summary>
        public string folder_name { get; set; }
        public string login_name { get; set; }
        public T_VRUserLevelLog ToEntry()
        {
            return new T_VRUserLevelLog
            {
                user_id = user_id,
                user_name = user_name,
                sell_money = sell_money,
                line_num = line_num,
                create_id = create_id,
                create_name = create_name,
                create_date = DateTime.Now
            };
        }
    }
    public partial class T_VRUserLevelLog
    {
        public UserLevelLog ToPOCO()
        {
            return new UserLevelLog
            {
                id = id,
                user_id = user_id,
                user_name = user_name,
                sell_money = sell_money,
                line_num = line_num,
                create_id = create_id,
                create_name = create_name,
                create_date = create_date.ToString("yyyy-MM-dd HH:mm")
            };
        }
    }
}